package cn.dong.statistics.feign.fallback;

import cn.dong.api.domain.CommonResult;
import cn.dong.statistics.feign.MemberSerivce;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MemberServiceImpl implements MemberSerivce {


    /**
     * 获取今天的用户注册数量
     *
     * @param day
     * @return
     */
    @Override
    public CommonResult getRegisterCountByDay(String day) {
        log.error("触发熔断");
        return CommonResult.error();
    }

    /**
     * 获取今天的用户登录数量
     *
     * @param day
     * @return
     */
    @Override
    public CommonResult getLoginCountByDay(String day) {
        log.error("触发熔断");
        return CommonResult.error();
    }
}
